package com.demo.controller;

import com.demo.service.AccountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName AccountController
 * @Description TODO
 * @Author Windy
 * @Date 2022/9/6 19:42
 * @Version 1.0
 **/
@Controller
@RequestMapping("account")
public class AccountController {

    @Autowired
    AccountService service;

    @RequestMapping("findAll")
    public String findAll(Model model){
        model.addAttribute("list",service.findAll());
        return "success";
    }
}
